package cn.yuyin.http;



public final class IMTErrorCodes {
	  
	  private static final String libName = "ilabs";

	    /** Assertion failed - only used during debugging!!! */
	    public static final IMTErrorCode ASSERTION_FAILED       = new IMTErrorCode(libName, 1);

	    /**
	     * Default method implementation not overridden as it should be in subclass.
	     */
	    public static final IMTErrorCode GENERALEXCEPTION       = new IMTErrorCode(libName, 2);

	    /**
	     * Some function wasn't implemented.
	     */
	    public static final IMTErrorCode NOT_IMPLEMENTED        = new IMTErrorCode(libName, 3);

	    /**
	     * File not found. Data should be set file name.
	     */
	    public static final IMTErrorCode FILE_NOT_FOUND         = new IMTErrorCode(libName, 10);

	    /**
	     * Resource not found.
	     */
	    public static final IMTErrorCode RESOURCE_NOT_FOUND     = new IMTErrorCode(libName, 11);

	    /**
	     * Unexpected end of file.
	     */
	    public static final IMTErrorCode UNEXPECTED_EOF         = new IMTErrorCode(libName, 12);

	    /**
	     * Error when reading input.
	     */
	    public static final IMTErrorCode READ                   = new IMTErrorCode(libName, 13);

	    /**
	     * Error when parsing server data.
	     */
	    public static final IMTErrorCode XML_PARSE_ERROR        = new IMTErrorCode(libName, 14);

	    /**
	     * File store full.
	     */
	    public static final IMTErrorCode FILE_STORE_FULL        = new IMTErrorCode(libName, 15);

	    /**
	     * Could not open file store.
	     */
	    public static final IMTErrorCode FILE_STORE_OPEN        = new IMTErrorCode(libName, 16);

	    /**
	     * Could not read persistent store. Data: name of persistent store.
	     */
	    public static final IMTErrorCode PERSISTENT_STORE_READ  = new IMTErrorCode(libName, 17);

	    /**
	     * Could not write persistent store. Data: name of persistent store.
	     */
	    public static final IMTErrorCode PERSISTENT_STORE_WRITE = new IMTErrorCode(libName, 18);

	    /**
	     * Could not reset (delete old) persistent store. Data: name of persistent
	     * store.
	     */
	    public static final IMTErrorCode PERSISTENT_STORE_RESET = new IMTErrorCode(libName, 19);

	    /**
	     * No connection to remote host over IP.
	     */
	    public static final IMTErrorCode NO_CONNECTION          = new IMTErrorCode(libName, 30);
	    /**
	     * Illegal to access this HTTP server.
	     * Also result of user answering "no" when asked if OK to use internet on phone.
	     */
	    public static final IMTErrorCode ILLEGAL_CONNECTION          = new IMTErrorCode(libName, 31);

	    /**
	     * Error in the data received from server.
	     */
	    public static final IMTErrorCode SERVER_DATA_ERROR      = new IMTErrorCode(libName, 32);

	    /**
	     * Error while downloading from the network.
	     */
	    public static final IMTErrorCode NETWORK_DATA_ERROR     = new IMTErrorCode(libName, 33);

	    /**
	     * Error when using authetication HTTP.
	     */
	    public static final IMTErrorCode HTTP_AUTHENTICATION    = new IMTErrorCode(libName, 34);

	    /**
	     * Error when setting up HTTP or HTTPS connection.
	     */
	    public static final IMTErrorCode HTTP_CONNECTION        = new IMTErrorCode(libName, 35);

	    /**
	     * Illegal response code when getting data.
	     */
	    public static final IMTErrorCode ILLEGAL_RESPONSE_CODE  = new IMTErrorCode(libName, 36);

	    /**
	     * Used with CertificateException.
	     */
	    public static final IMTErrorCode CERTIFICATE            = new IMTErrorCode(libName, 37);

	    /**
	     * Login authentication failed.
	     */
	    public static final IMTErrorCode LOGIN_FAILED            = new IMTErrorCode(libName, 50);

	    /**
	     * Error when creating media player.
	     */
	    public static final IMTErrorCode CREATE_PLAYER          = new IMTErrorCode(libName, 51);

	    /**
	     * Error when creating image.
	     */
	    public static final IMTErrorCode IMAGE_CREATE           = new IMTErrorCode(libName, 52);


	    /**
	     * The view has a invalid size (e.g zero or negative size)
	     */
	    public static final IMTErrorCode INVALID_VIEW_SIZE = new IMTErrorCode(libName, 53);
	    
	    
	    /**
	     * The java vm has run out of memory
	     */
	    public static final IMTErrorCode OUT_OF_MEMORY     = new IMTErrorCode(libName, 54);

	    
	    /**
	     * Private constructor as no object of this class should be created.
	     */
	    private IMTErrorCodes() {
	    }
	}
